﻿using System.ComponentModel.DataAnnotations;

namespace GioHangViet.Models
{
    [Table("Provice")]
    public class Provice
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int Id { get; set; }

        [Required(ErrorMessageResourceName = "ErrorProviceName", ErrorMessageResourceType = typeof(Resources.Error))]
        [StringLength(100, ErrorMessageResourceType = typeof(Resources.Error), ErrorMessageResourceName = "ErrorProviceNameLength")]
        public string Name { get; set; }
    }
}